> > Yes, it leaves setuid on a program that is way too large. Xterm tends > > to be setuid so it can write to utmp. Thats a bad reason to make a > > large program setuid. > Hm. Why not make utmp group "bob" writable, and make xterm setgid "bob"? Doesn't xterm also need to chown() some devices to the user logging in? It seems that xterm should only need root on startup and exit, though. If someone wrote a wrapper to take care of the stuff that xterm does on exit, (which could be small and setuid) then xterm could just exec() that when it exited. Of course you the wrapper would need to be reasonably smart about not letting people remove themselves from utmp who weren't really logging out. Maybe it could refuse to run if there were any processes who had that tty was their controlling terminal other than itself? Just a thought. ...Robert